const commonConfig = require('./webpack.common')
const {
    merge
} = require('webpack-merge')
const path = require('path')

module.exports = merge(commonConfig, {
    mode: 'development', //开发环境
    devtool: "cheap-module-source-map",

    devServer: {
        contentBase: path.join(__dirname, 'dist'),
        port: 9000,
        hot: true, //热加载
        open: true, //自动拉起
        inline: true //实时刷新
    }
})
